#include <stdio.h>
int main()
{
    int m,n,i;
    while (scanf("%d%d",&n,&m)!=EOF)
    {
        for (i=1;;i=i+m)
        {
            if (i+m>n){printf("%d",i+n);break;}
            else printf("%d ",i*2+m-1);
        }
        printf("\n");
    }
    return 0;
}
